<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="security"%>

<security:authorize ifAllGranted="ROLE_EDITABLE">
<a id="saveButton" class="button_inputDisabled">
  <span><spring:message code="button.save"/></span>
</a>
<a id="cancelButton" class="button_input" onclick="this.blur();cancel();" onmouseover="buttonHover(this);" onmouseout="buttonNormal(this);">
  <span><spring:message code="button.cancel"/></span>
</a>
<c:if test="${fn:length(adminCommand.linkedUserNames) < 1 && !adminCommand.isNew}">
<a id="deleteButton" class="button_input" onclick="openDeleteDialog();" onmouseover="buttonHover(this);" onmouseout="buttonNormal(this);">
  <span><spring:message code="button.delete"/></span>
</a>
</c:if>
</security:authorize>

<security:authorize ifNotGranted="ROLE_EDITABLE">
<a id="cancelButton" class="button_input" onclick="this.blur();cancel();" onmouseover="buttonHover(this);" onmouseout="buttonNormal(this);">
  <span><spring:message code="button.cancel"/></span>
</a>
</security:authorize>